From f6ae4b4b75de8d38d99a11188973bcaaf896c418 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Wed, 28 Apr 2010 10:45:56 +0000 Subject: [PATCH] backfire: ar71xx: create separate 'factory' and 'sysupgrade' images for the WRT160NL (backport of r21168) The 'factory' image requires the garbage at the end of the image. Flashing from the original web interface does not work without that. SVN-Revision: 21223 --- target/linux/ar71xx/image/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 4a421090b9..419dfb32d8 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -299,7 +299,10 @@ define Image/Build/CyberTAN -x 32 -a 0x10000 -x -32 -f $(KDIR)/root.$(1) -$(STAGING_DIR_HOST)/bin/addpattern -B $(2) -v v$(4) \ -i $(KDIR)/image.tmp \ - -o $(call imgname,$(1),$(2)).bin + -o $(call imgname,$(1),$(2))-sysupgrade.bin + -$(STAGING_DIR_HOST)/bin/addpattern -B $(2) -v v$(4) -g \ + -i $(KDIR)/image.tmp \ + -o $(call imgname,$(1),$(2))-factory.bin rm $(KDIR)/image.tmp endef -- 2.30.2